c# list with 0 initialize

151

instantiate list with values c# -

var list = new List<string> {
  "test1",
  "test2",
  "test3"
};

c# list with 0 initialize -

var tenDoubles = new List<double>(new double[10]);

Comments

Submit
0 Comments